package com.zhangtai.modules.entity.system;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.zhangtai.config.LongJsonDeserializer;
import com.zhangtai.config.LongJsonSerializer;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;


/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-08-20 09:18:38
 */
@Data
@TableName("sys_authority_log")
public class AuthorityLogEntity implements Serializable {
	private static final long serialVersionUID = 1L;

			/**
		 * 值增长id
		 */
				@TableId
		@JsonDeserialize(using = LongJsonDeserializer.class)
		@JsonSerialize(using = LongJsonSerializer.class)
			private Long id;
	/**
	 * 修改的员工id
	 */
	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
	private Long oid;

			/**
		 * 旧数据 或返回数据
		 */
			private String oldData;
			/**
		 * 新数据
		 */
			private String newData;
			/**
		 * 用户id
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long updateUserId;
			/**
		 * 用户名字
		 */
			private String updateUserName;


	/**
	 * 员工工号
	 */
	private String usercode;
			/**
		 * 岗位id
		 */
			@JsonDeserialize(using = LongJsonDeserializer.class)
			@JsonSerialize(using = LongJsonSerializer.class)
			private Long jobId;
			/**
		 * 岗位
		 */
			private String jobName;
			/**
		 * 备注
		 */
			private String remark;
			/**
		 * 0:正常，1：删除
		 */
			private Integer isDelete;

	/**
	 * 请求方法
	 */
	private String method;
	/**
	 * 请求参数
	 */
	private String params;
	/**
	 * 用户ip
	 */
	private String ip;


	/**
	 * 操作时间
	 */
	private Date updateTime;

	/**
	 *  记录类型 1.记录入职日期  2.操作日志 3.记录修改工资变更
	 */
	private Integer type;
//	/**
//	 * 执行时长(毫秒)
//	 */
//	@JsonDeserialize(using = LongJsonDeserializer.class)
//	@JsonSerialize(using = LongJsonSerializer.class)
//	private Long time;

	/**
	 * 请求url
	 */
	private String operUrl;

	/**
	 * 公司id
	 */
	@JsonDeserialize(using = LongJsonDeserializer.class)
	@JsonSerialize(using = LongJsonSerializer.class)
	private Long orgId;

}
